<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>7-数组新增元素</title>
	</head>
	<body>
		<script type="text/javascript">
			//初始化数组并赋值(元素)
			var arr = [1,3,5,7,9,'中国'];
			console.log("数组长度::"+arr.length);
			arr[arr.length] = '韩国';
			//[ 1, 3, 5, 7, 9, "中国", "韩国" ]
			console.log(arr);
		</script>
	</body>
</html>
